//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package info.sean.constant;



public enum CscRspCode implements RspCode {
    GMCF_TRANSCORE_TRANS_BUY_TIME_EXCEEDED("01001010001", "错误信息"),
    ERR_DATE_TYPE_NO_EXISTS("01001010002", "没有该状态的信息"),
    ERR_REQUIRED_PARAMS_CAN_NOT_BE_NULL("10000010003", "必填参数%s不能为NULL"),
    ERR_UPDATE_DATE("10000010004", "更新时间失败"),
    ERR_QUERY_DATE_TYPE("10000010005", "查询时间类型失败"),
    ERR_INSERT_MERCHANT_MEBER("10000010006", "商户会员添加失败"),
    ERR_QUERY_MERCHANT_MEBER("10000010007", "商户会员查询失败"),
    ERR_QUERY_BATH_DATE_LOG("10000010008", "该条记录不存在"),
    ERR_QUERY_INSERT_MERCHANT_ERROR("10000010009", "资方代码已存在"),
    ERR_QUERY_MERCHANT_ERROR("10000010010", "商户会员查询失败,资方代码不能为空"),
    QUERY_LOCATION_ERROR("02000000001", "查询了不存在的地区"),
    QUERY_LOCATION_PROVINCE_NAME_ERROR("02000000002", "省级地名字为空");

    private String message;
    private String code;

    private CscRspCode(String message, String code) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public static CscRspCode getEnum(String value) {
        CscRspCode[] crc = values();

        for(int i = 0; i < crc.length; ++i) {
            if (crc[i].getCode().equals(value)) {
                return crc[i];
            }
        }

        return null;
    }
}
